package com.example.mybatisplusdemo.service;

import com.example.mybatisplusdemo.model.domain.Recharge;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 用户充值表 服务类
 * </p>
 *
 * @author lqj
 * @since 2025-07-01
 */
public interface IRechargeService extends IService<Recharge> {

    List<Recharge> getAllPendingOrHandled();

    boolean approve(@Param("requestId") Long requestId, @Param("approved") boolean approved);

    void saveRechargeRequest(@Param("id") Long id, @Param("amount") BigDecimal amount);

    int clearProcessed();
}
